﻿using System;
using System.Globalization;

namespace ParseDouble
{
    public class Program
    {
        public static void Main()
        {
            string input = "123 456 789,526";
            input = input.Replace(',', '.');
            input = input.Replace(" ", "");
            double number = double.Parse(input, new CultureInfo("en-US"));
            Console.WriteLine(number);
        }
    }
}
